package JAVACORE_TRAINING.ADVANCED.MULTITHREADING.SAMPLE01;

public class ExtendThread extends Thread {
	public ExtendThread(String name) {
		super(name);
	}

	@Override
	public void run() {
		for (int i = 0; i < 3; i++)
			try {
				Thread.sleep(3000);
				System.out.println("i = " + i);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
	}

	public static void main(String[] str) {
		ExtendThread objT = new ExtendThread("Thread Demo");
		objT.start();
	}
}
